home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / rsync.postinst < prev    next >
Encoding:
Text File  |  2010-02-17  |  712 b   |  31 lines

  1. #!/bin/sh -e
  2.  
  3. action="$1"
  4. oldversion="$2"
  5.  
  6. if [ "$action" != configure ]; then
  7.     exit 0
  8. fi
  9.  
  10.  
  11. if [ -x /etc/init.d/rsync ]; then
  12.     if dpkg --compare-versions "$oldversion" lt "3.0.7-2"; then
  13.         update-rc.d -f rsync remove
  14.     fi
  15.  
  16.     update-rc.d rsync start 50 2 3 4 5 . >/dev/null
  17.     if [ -x /usr/sbin/invoke-rc.d ]; then
  18.         invoke-rc.d rsync restart
  19.     else
  20.         /etc/init.d/rsync restart
  21.     fi
  22. fi
  23.  
  24. # # Remove shutdown and reboot links; this init script does not need them.
  25. # # The wildcards are needed as we can't predict the number anymore...
  26. # if dpkg --compare-versions "$oldversion" lt "3.0.7-2"; then
  27. #     rm -f /etc/rc0.d/K??rsync /etc/rc1.d/K??rsync /etc/rc6.d/K??rsync
  28. # fi
  29.  
  30. exit 0
  31.